//
//  ASOverlayView.m
//  Decathlon
//
//  Created by wFeng on 15/8/3.
//  Copyright (c) 2015年 vsignsoft. All rights reserved.
//

#import "ASOverlayView.h"


@interface ASOverlayView ()

@property (nonatomic, weak) id<ASOverlayViewDelegate> delegate;

@end



@implementation ASOverlayView

- (instancetype)initWithFrame:(CGRect)frame
					 delegate:(id<ASOverlayViewDelegate>)delegate
{
	if (self = [super initWithFrame:frame])
	{
		self.delegate = delegate;
	}
	
	return self;
}

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
	return [self.delegate overlayView:self hitTest:point withEvent:event];
}


@end
